﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BaiTapBatBuoc
{
    class TamGiac
    {
        private Diem a;
        private Diem b;
        private Diem c;

        public TamGiac(Diem a, Diem b, Diem c) {
            this.a = a;
            this.b = b;
            this.c = c;
        }
        public double ChuVi() {
            double x = this.a.KhoangCach(b);
            double y = this.c.KhoangCach(b);
            double z = this.a.KhoangCach(c);
            return x + y + z;
        }
        
    }
}
